<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<form action="index.php" method="post">
			<input type="text" name="id" id="id" value=""/>
			<input type="submit" value="提交" id="t"/>
		</form>
		
		<button onclick="tj()">提交表单</button>
		<script type="text/javascript" src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
		<script type="text/javascript">
			function tj(){
				$("#id").val("123")
				$("#t").click()
			}
		</script>
	</body>
</html>
